package com.zbkj.crmeb.order.response;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;


@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ImOrderInfoResponse implements Serializable {

    @JsonProperty(value = "code")
    private String code;

    @JsonProperty(value = "message")
    private String message;

    @JsonProperty(value = "success")
    private boolean success;

    @JsonProperty(value = "timestamp")
    private Long timestamp;

    @JsonProperty(value = "error")
    private String error;

    @JsonProperty(value = "data")
    private List<Result> data;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Result {

        @JsonProperty(value = "orderLineNum")
        private String orderLineNum;

        @JsonProperty(value = "status")
        private Integer status;

        @JsonProperty(value = "productId")
        private Long productId;

        @JsonProperty(value = "productName")
        private String productName;

        @JsonProperty(value = "itemId")
        private Long itemId;

        @JsonProperty(value = "salePrice")
        private BigDecimal salePrice;

        @JsonProperty(value = "createTime")
        private Long createTime;
    }

}
